using Nuwanda.TfsSpotlight.Shell.Services;

namespace Nuwanda.TfsSpotlight.Shell.Expressions
{
    internal class ContextMenuConfiguretionExpression : IContextMenuConfiguretionExpression
    {
        private ContextMenu ContextMenu { get; set; }

        public ContextMenuConfiguretionExpression(ContextMenu contextMenu)
        {
            ContextMenu = contextMenu;
        }

        public IContextMenuConfiguretionExpression Command(string commandName)
        {
            this.ContextMenu.Commands.Add(commandName);
            return this;
        }
    }
}